﻿using UnityEngine;
using System.Collections;


//工作：增加摄像头平滑跟踪主角的函数
public class camera : MonoBehaviour {
    private GameObject hero;
    // Use this for initialization
    void Start()
    {
        hero = GameObject.Find("Garrosh");
    }
    void Update()
    {

    }
    void LateUpdate()
    {
        
        transform.position = hero.transform.position - new Vector3(0, 0, 3);

    }
}
